package com.rp.data.tcp_ws.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 类说明:
 *
 * @author ****
 * @date 2021-03-06 11:19  新建
 */
@ApiModel(description="websocket返回值定义")
@Data
@Accessors(chain = true)
public class SocketViewModel {
    /**
     * @Author HuJingYu
     * @Date 9:39 2021-01-11
     * @Description websocket返回值定义
     * key:
     *      alarmSize 报警长度推送
     *      deviceSize 主机在线长度推送
     *      alarm 报警推送
     *      map 地图数据推送
     */

    @ApiModelProperty(value = "报警长度推送(总) [火警 监管 反馈 故障 提示 屏蔽 启动 预留 异常]")
    private int[] alarmSizeSum;

    @ApiModelProperty(value = "报警长度推送(未处理) [火警 监管]")
    private int[] alarmSizeNotState;

    @ApiModelProperty(value = "主机在线长度推送 [离线 在线]")
    private int[] deviceSize;
    @ApiModelProperty(value = "所有实时主机报警总数")
    private Integer isRealTimeAlarmSum;

    public SocketViewModel() {
    }

    public SocketViewModel(int[] alarmSizeSum, int[] alarmSizeNotState, int[] deviceSize, Boolean isFlush) {
        this.alarmSizeSum = alarmSizeSum;
        this.alarmSizeNotState = alarmSizeNotState;
        this.deviceSize = deviceSize;
    }
}
